// html utils

/**
 * html转义
 * @param html
 * @returns
 */
export function encodeHTML(html: string): string {
  const div = document.createElement('div');
  div.textContent = html;
  return div.innerHTML;
}
